//
//  AppointmentPlan.h
//  ICrEAM
//
//  Created by Cty on 2016/11/07.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol ICMAppointmentPlanDelegate <NSObject>
@optional
- (void)didClickPreViewWithIndex:(NSIndexPath *)index WithBookOrderNo:(NSString *)bookOrderNo;
- (void)didClickPlanCellWithIndex:(NSIndexPath *)index WithBookOrderNo:(NSString *)bookOrderNo;
- (void)didSearchByStartDate:(NSDate *)startDate andEndDate:(NSDate *)endDate;
//加载更多数据
- (void)loadMoreDataWithText:(NSString *)text WithType:(NSString *)type WithStartDate:(NSString *)startDate WithEndDate:(NSString *)endDate WithPage:(int)page;

@end

@interface AppointmentPlan : UIView
@property (nonatomic, strong) NSString *condition;
@property (nonatomic, assign) BOOL isSearchByDate;

@property (nonatomic, weak) id<ICMAppointmentPlanDelegate>delegate;

+ (instancetype)creatViewWithFrame:(CGRect)frame andModels:(NSArray *)dataSource;
- (void)reloadDataWithArray:(NSArray *)dataSource;
//加载更多数据
- (void)loadMoreDataWithData:(id)data;

@end
